<?php 
/**
 * 共享公司model类
 * @Author    紫梦
 * @DateTime  2017-11-02
 * @copyright 响响租车
 * @version   1.0
 */
namespace app\common\model;
use think\Model;

class Company extends Model
{
	protected $autoWriteTimestamp = true;
	protected $insert = ['status' => 1]; 
	protected $type = [
        'time'  =>  'timestamp:Y-m-d',        
    ];	
	 
	 protected function scopeStatus($query)
    {
        $query->where(['status'=>1]);
    } 
}